<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../../common/taglib.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <%@include file="../../common/common-css.jsp" %>
     <%@include file="../../common/common-js.jsp" %>
    <%@include file="../../common/init.jsp" %>
  </head>
  
  <body>
  <div style="height: 100%;overflow-y: auto;">
<form action="${pageContext.servletContext.contextPath }/background/user/update.html" method="post" data-validator-option="{theme:'yellow_right_effect',stopOnError:true}">
<input type="hidden" name="userId" value="${user.userId}">
		<div class="right">
        	<div class="volume">
            	<img src="${pageContext.servletContext.contextPath }/images/toleft.png" style="margin:23px 0 0 2px;_margin:23px 0 0 0px;" />
            </div>
        	<div class="rightcon">
            	<div class="title">
                	您当前的位置：首页 >用户管理 > 修改用户
                </div>
                	<div class="titlecon">
                           	修改用户
                    </div>
                	<div class="addlist">
                        
                        	<table class="addlistcon" border="0" cellpadding="0" cellspacing="0">
                            	<tr>
                                	<td width="30%" align="right" class="odd"><span style="color:#900">*</span>用户名：
                                    </td>
                                    <td width="70%"  class="even">
                                   <input style="height: 20px;width: 200px" name="userName" value="${user.userName}" type="text" data-rule="用户名:required;name;"/>*用户登录的名称
                                    </td>
                                </tr>
                                <tr>
                                	<td  align="right" class="odd"><span style="color:#900">*</span>所属角色：
                                    </td>
                                    <td   class="even"> 
                                    <select name="roleId" id="roleId" style="height: 20px;width: 200px" >
										 	<c:forEach var="key" items="${roles}">
												<option value="${key.id}" <c:if test="${key.name eq user.roleName}">selected="selected"</c:if>>${key.name}</option>
											</c:forEach>
										</select>
                                    </td>
                                </tr>
                                <tr>
                                	<td  align="right" class="odd"><span style="color:#900">*</span>密码：
                                    </td>
                                    <td   class="even"> 
                                    <input style="height: 20px;width: 200px" name="userPassword" value="${user.userPassword}" type="text" data-rule="密码: required;name;"/>*用户登录的密码
                                    </td>
                                </tr>
                                 <tr>
                                	<td  align="right" class="odd"><span style="color:#900">*</span>昵称：
                                    </td>
                                    <td   class="even"> 
                                    <input type="text" id="officeHours1" name="userNickname" value="${user.userNickname}" style="height: 20px;width: 200px" data-rule="昵称: required;name;"/>
                                    </td>
                                </tr>
                                <tr>
                                	<td  align="right" class="odd"><span style="color:#900">*</span>真实姓名：
                                    </td>
                                    <td   class="even"> 
                                    <input style="height: 20px;width: 200px" name="userRealname" value="${user.userRealname}" type="text" data-rule="真实姓名: required;name;"/>
                                    </td>
                                </tr>
                                <tr>
                                	<td  align="right" class="odd"><span style="color:#900">*</span>年龄：
                                    </td>
                                    <td   class="even"> 
                                    <input style="height: 20px;width: 200px" name="userAge" type="text"  value="${user.userAge}" data-rule="年龄: required;name;"/>
                                    </td>
                                </tr>
                                <tr>
                                	<td  align="right" class="odd"><span style="color:#900">*</span>性别：
                                    </td>
                                    <td   class="even"> 
                                    <input type="radio" name="sex" value="男" <c:if test="${user.userSex eq '男' }">checked="checked"</c:if> />男
										<input type="radio" name="sex" value="女" <c:if test="${user.userSex eq '女' }">checked="checked"</c:if> />女
                                    </td>
                                </tr>
                                <tr>
                                	<td  align="right" class="odd"><span style="color:#900">*</span>地址：
                                    </td>
                                    <td   class="even"> 
                                    <input style="height: 20px;width: 200px" name="userAddress" value="${user.userAddress}" type="text" data-rule="地址: required;name;"/>
                                    </td>
                                </tr>
                                <tr>
                                	<td  align="right" class="odd"><span style="color:#900">*</span>电话：
                                    </td>
                                    <td   class="even"> 
                                    <input style="height: 20px;width: 200px" name="userPhone" value="${user.userPhone}" type="text" data-rule="电话: required;name;"/>
                                    </td>
                                </tr>
                                 <tr>
                                	<td  align="right" class="odd"><span style="color:#900">*</span>邮箱：
                                    </td>
                                    <td   class="even"> 
                                   <input style="height: 20px;width: 200px" name="userMail" value="${user.userMail}" type="text" data-rule="邮箱: required;name;"/>
                                    </td>
                                </tr>
                                 <tr>
                                	<td  align="right" class="odd"><span style="color:#900">*</span>QQ：
                                    </td>
                                    <td   class="even"> 
                                    <input style="height: 20px;width: 200px" name="userQQ"  value="${user.userQQ}" type="text" data-rule="QQ: required;name;"/>
                                    </td>
                                </tr>
                                 <tr>
                                	<td  align="right" class="odd"><span style="color:#900">*</span>级别：
                                    </td>
                                    <td   class="even"> 
                                    <input style="height: 20px;width: 200px" name="levels" type="text" value="${user.levels}" data-rule="级别: required;name;"/>
                                    </td>
                                </tr>
                              </table> 
                             <div class="savere" style="float:center; margin-left:34%; _margin-left:17%;">
                               <input type="image" src="${pageContext.servletContext.contextPath }/images/baocun.png" width="101" height="46"/>
							        <a href="javascript:history.go(-1)" ><img src="${pageContext.servletContext.contextPath }/images/fanhui.png" width="101" height="46"></a>
                            </div>
                    </div><!--addlist-->
            </div><!--rightcon-->
        </div><!--right-->		
</form>
</div>
  </body>
</html>
